/*
* @author : TF-BJ-C064
* @creation : 2014-6-28 下午1:51:06
* @description : 
*
*/

package com.bean;

public class ParkOrderStatus implements java.io.Serializable{
	
	/** serialVersionUID*/
	private static final long serialVersionUID = -8464196889241293206L;
	//'订单状态（-3：超时未支付的订单；-2：超时未确认定的订单；-1：管理员确认无法预订；
	// 0：订单已取消；1：等待收费员确认订单；2：未支付；3：已支付；4：已结单）',
	private Integer value;
	private String  name;

	public ParkOrderStatus(Short status) {
		this.value = status.intValue();
		switch(status){
		case -3:
			this.name = "超时未支付的订单";
			break;
		case -2:
			this.name = "超时未确认定的订单";
			break;
		case -1:
			this.name = "拒绝预订";
			break;
		case 0:
			this.name = "已取消";
			break;
		case 1:
			this.name = "等待收费员确认订单";
			break;
		case 2:
			this.name = "未支付";
			break;
		case 3:
			this.name = "已支付";
			break;
		case 4:
			this.name = "已结单";
			break;
		default:
			this.name = "异常";
				
		}
	}

	/**
	 * @return the value
	 */
	public Integer getValue() {
		return value;
	}

	/**
	 * @param value the value to set
	 */
	public void setValue(Integer value) {
		this.value = value;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	

}
